{% load	bootstrap3 %}
<div class="ibox-content">
    <form class="form-horizontal" action="{% url "tools_add" %}" method="post"
    >
        {% csrf_token %}
        {% if form.non_field_errors %}
            <div class="alert alert-danger" style="margin: 20px auto 0px">
                {{ form.non_field_errors }}
            </div>
        {% endif %}

        <div class="form-group">
            <div class="col-sm-10 col-sm-offset-0">
                {% bootstrap_field form.name layout="horizontal" %}
                {% bootstrap_field form.tool_script layout="horizontal" %}
                {% bootstrap_field form.tool_run_type layout="horizontal" %}
                {% bootstrap_field form.comment layout="horizontal" %}
            </div>
        </div>

        <div class="hr-line-dashed"></div>


        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-3">

                <button class="btn btn-primary" type="submit">保存</button>
                <button class="btn btn-white" type="reset">重置</button>
            </div>
        </div>


    </form>


</div>